

import request from '../request.js'
import {bankCardURL,addbalanceURL,bindingcardURL,querycardURL,deletecardURL,WithdrawalURL} from '../urls.js' 

export default {
	///添加银行卡
	addBankcard(data){
		return request({
			url:bankCardURL,
			method:'POST',
			data
		})
	},
	
	///余额充值
	addBalance(data){
		return request({
			url:addbalanceURL,
			method:'POST',
			data
		})
	},
	
	///给用户绑定银行卡
	bindingCard(data){
		return request({
			url:bindingcardURL,
			method:'POST',
			data
		})
	},
	
	///查询银行卡信息
	queryCard(data){
		return request({
			url:querycardURL,
			method:'POST',
			data
		})
	},
	
	///删除银行卡
	deleteCard(data){
		return request({
			url:deletecardURL,
			method:'POST',
			data
		})
	},
	
	///余额提现到银行卡
	Withdrawal(data){
		return request({
			url:WithdrawalURL,
			method:'POST',
			data
		})
	}
}